#include<iostream>
#include<time.h>
#include<string>
using namespace std;
string gettime()
{
    time_t t=time(0);
    char tmp[32]={NULL};
    strftime(tmp,sizeof(tmp),"%Y%m%d%H%M%S",localtime(&t));
    return tmp;
}
int main()
{
    string tm=gettime();
    cout<<tm<<endl;
    return 0;
}
